/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.schnipsel.swt;

import org.eclipse.swt.widgets.Composite;

import de.mnit.basis.daten.konstant.position.POSITION_H;
import de.mnit.basis.swt.anw.A_MN_Gruppe;
import de.mnit.basis.swt.element.S_SWT_Komponente;
import de.mnit.basis.swt.element.steuer.SWT_Label;
import de.mnit.basis.swt.layout.LayoutMax;

/**
 * @author Michael Nitsche
 * 17.06.2010	Erstellt
 */
public class K_Anzahl extends A_MN_Gruppe<K_Anzahl> {

	private final SWT_Label k_text	= new SWT_Label().s1_POSITION(POSITION_H.RECHTS);


	public void setze(int auswahl, int summe) {
		String s=auswahl+" / "+summe;
		t.k_text.sText(s);
	}


	protected S_SWT_Komponente<?, ? extends Composite> layout() {
		return LayoutMax.neu(t.k_text);
	}

	protected void initStyle() {
	}

	protected void initEvents() {
	}

}
